package cn.yl.comment.server.service;

import cn.yl.comment.server.entity.CourseComment;
import cn.yl.comment.server.entity.dto.CourseCommentDto;
import cn.yl.comment.server.entity.vo.CourseCommentVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程留言表 服务类
 * </p>
 *
 * @author yl
 * @since 2022-04-22
 */
public interface CourseCommentService extends IService<CourseComment> {


    List<CourseCommentDto> getCourseCommentList(Integer courseId, Integer current, Integer size);

    boolean saveCourseComment(CourseCommentVo courseCommentVo, String jwt);

    boolean saveFavorite(Integer commentId, String jwt);

    boolean cancelFavorite(Integer commentId, String jwt);
}
